<div id="mainThemeEngine">
<script>
$(function() {
	$( ".datepicker" ).datepicker();
});
</script>
<?php
if(isset($engineReturn['command']))
	switch($engineReturn['command'])
	{
		case "insert" :
			$this->load->view("engine/module/insert", array("engineReturn" => $engineReturn));
		break;
		case "insert_cross" :
			$this->load->view("engine/module/insert_cross", array("engineReturn" => $engineReturn));
		break;
		case "medium_table" :
			$this->load->view("engine/module/medium_table", array("engineReturn" => $engineReturn));
		break;
		case "advance_table" :
			$this->load->view("engine/module/advance_table", array("engineReturn" => $engineReturn));
		break;
		case "multiple_value" :
		case "multiple_value_foreign" :
			$this->load->view("engine/module/multiple_value", array("engineReturn" => $engineReturn));
		break;
		case "view_data" :
			if($engineReturn["cetak"]=="goOn")
				$this->load->view("engine/module/cetakGrid", array("engineReturn" => $engineReturn));
			else
				$this->load->view("engine/module/view_data", array("engineReturn" => $engineReturn));
		break;
		case "view_cross_data" :
			$this->load->view("engine/module/grid_cross", array("engineReturn" => $engineReturn));
		break;
		case "detail_view" :
			$this->load->view("engine/module/detail_view", array("engineReturn" => $engineReturn));
		break;
		case "text_primary" :
			$this->load->view("engine/module/text_primary", array("engineReturn" => $engineReturn));
		break;
		case "sub" :
			$this->load->view("engine/module/sub", array("engineReturn" => $engineReturn));
		break;
		case "single_edit" :
			$this->load->view("engine/module/single_edit", array("engineReturn" => $engineReturn));
		break;
		default:
			echo "Welcome";
		break;
	}
else
	echo "Welcome";
?>
</div>